@ECHO OFF
if "%1"=="" goto HELP_USAGE

SET BC3_PROGRAM=C:\Program Files\Beyond Compare 3\BComp.exe
SET BC3_ARGS=/title1="Crytek: %1" /title2="Xaviant: %2" /title3="Ancestor: %3" /title4="Merged: %4" /automerge /nobackups /reviewconflicts /closescript

"%BC3_PROGRAM%" %BC3_ARGS% "%1" "%2" "%3" "%4"
goto EXIT

:HELP_USAGE
ECHO USAGE: AutoMerge "{relative file name}"
goto EXIT

:EXIT
@ECHO ON
